﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace _3D_Game
{
    class EnemyShot : BasicModel
    {
        public Vector3 Pos { get; set; }
        public Vector3 Dir { get; set; }
        public float speed = 10;

        public EnemyShot(Model model,Vector3 position, Vector3 direction)
            : base(model)
        {
            Pos = position;
            Dir = direction;
        }

        public override void Update()
        {
            Pos += Dir * speed;
            // Move model
            world += Matrix.CreateTranslation(Pos);

        }
    }
}

